#pragma once

#include "AutoLock.h"

class CLogger
{
public:
    CLogger();
    ~CLogger(void);

    bool close();
    void writelog(const char* format, ...);
    void write(const char *logmsg);
private:
    FILE *fp;
    CSimpleLock lock_;
};

extern CLogger logger;
